package com.bjpowernode.mapper;

import com.bjpowernode.annotation.DataScope;
import com.bjpowernode.entity.TClue;
import com.bjpowernode.entity.query.BaseQuery;
import com.bjpowernode.entity.query.ClueExcel;
import com.bjpowernode.entity.vo.NameValueDataVO;
import com.bjpowernode.entity.vo.SummaryDataVO;

import java.util.List;

public interface TClueMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TClue record);

    int insertSelective(TClue record);

    TClue selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TClue record);

    int updateByPrimaryKey(TClue record);

    @DataScope(tableAlias = "tc", columnName = "owner_id")
    List<TClue> getClueByPage(BaseQuery baseQuery, Integer current);

    int importExcel(List<ClueExcel> list);

    TClue getClueById(Integer id);

    Integer checkClueState(Integer clueId);

    void updateClueState(Integer clueId, int i);

    SummaryDataVO getSummaryData();

    Integer getClueCount();

    List<NameValueDataVO> selectClueSourceCount();
}